Optimal. Leaf size=147 \[ \frac{\log (x) (-A b e-2 A c d+b B d)}{b^3 d^2}+\frac{c (b B-A c)}{b^2 (b+c x) (c d-b e)}-\frac{A}{b^2 d x}+\frac{c \log (b+c x) \left (-b c (3 A e+B d)+2 A c^2 d+2 b^2 B e\right )}{b^3 (c d-b e)^2}-\frac{e^2 (B d-A e) \log (d+e x)}{d^2 (c d-b e)^2} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.438969, antiderivative size = 147, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083 \[ \frac{\log (x) (-A b e-2 A c d+b B d)}{b^3 d^2}+\frac{c (b B-A c)}{b^2 (b+c x) (c d-b e)}-\frac{A}{b^2 d x}+\frac{c \log (b+c x) \left (-b c (3 A e+B d)+2 A c^2 d+2 b^2 B e\right )}{b^3 (c d-b e)^2}-\frac{e^2 (B d-A e) \log (d+e x)}{d^2 (c d-b e)^2} \]
Antiderivative was successfully verified.
[In] Int[(A + B*x)/((d + e*x)*(b*x + c*x^2)^2),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 60.6325, size = 139, normalized size = 0.95 \[ - \frac{A}{b^{2} d x} + \frac{e^{2} \left (A e - B d\right ) \log{\left (d + e x \right )}}{d^{2} \left (b e - c d\right )^{2}} + \frac{c \left (A c - B b\right )}{b^{2} \left (b + c x\right ) \left (b e - c d\right )} + \frac{c \left (- 3 A b c e + 2 A c^{2} d + 2 B b^{2} e - B b c d\right ) \log{\left (b + c x \right )}}{b^{3} \left (b e - c d\right )^{2}} - \frac{\left (A b e + 2 A c d - B b d\right ) \log{\left (x \right )}}{b^{3} d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((B*x+A)/(e*x+d)/(c*x**2+b*x)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.299003, size = 146, normalized size = 0.99 \[ \frac{\log (x) (-A b e-2 A c d+b B d)}{b^3 d^2}+\frac{c (A c-b B)}{b^2 (b+c x) (b e-c d)}-\frac{A}{b^2 d x}+\frac{c \log (b+c x) \left (-b c (3 A e+B d)+2 A c^2 d+2 b^2 B e\right )}{b^3 (c d-b e)^2}+\frac{e^2 (A e-B d) \log (d+e x)}{d^2 (c d-b e)^2} \]
Antiderivative was successfully verified.
[In] Integrate[(A + B*x)/((d + e*x)*(b*x + c*x^2)^2),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.023, size = 248, normalized size = 1.7 \[ -{\frac{A}{{b}^{2}dx}}-{\frac{\ln \left ( x \right ) Ae}{{b}^{2}{d}^{2}}}-2\,{\frac{Ac\ln \left ( x \right ) }{d{b}^{3}}}+{\frac{\ln \left ( x \right ) B}{{b}^{2}d}}-3\,{\frac{{c}^{2}\ln \left ( cx+b \right ) Ae}{{b}^{2} \left ( be-cd \right ) ^{2}}}+2\,{\frac{{c}^{3}\ln \left ( cx+b \right ) Ad}{{b}^{3} \left ( be-cd \right ) ^{2}}}+2\,{\frac{c\ln \left ( cx+b \right ) Be}{b \left ( be-cd \right ) ^{2}}}-{\frac{{c}^{2}\ln \left ( cx+b \right ) Bd}{{b}^{2} \left ( be-cd \right ) ^{2}}}+{\frac{A{c}^{2}}{{b}^{2} \left ( be-cd \right ) \left ( cx+b \right ) }}-{\frac{cB}{b \left ( be-cd \right ) \left ( cx+b \right ) }}+{\frac{{e}^{3}\ln \left ( ex+d \right ) A}{{d}^{2} \left ( be-cd \right ) ^{2}}}-{\frac{{e}^{2}\ln \left ( ex+d \right ) B}{d \left ( be-cd \right ) ^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((B*x+A)/(e*x+d)/(c*x^2+b*x)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.712809, size = 306, normalized size = 2.08 \[ -\frac{{\left ({\left (B b c^{2} - 2 \, A c^{3}\right )} d -{\left (2 \, B b^{2} c - 3 \, A b c^{2}\right )} e\right )} \log \left (c x + b\right )}{b^{3} c^{2} d^{2} - 2 \, b^{4} c d e + b^{5} e^{2}} - \frac{{\left (B d e^{2} - A e^{3}\right )} \log \left (e x + d\right )}{c^{2} d^{4} - 2 \, b c d^{3} e + b^{2} d^{2} e^{2}} - \frac{A b c d - A b^{2} e -{\left (A b c e +{\left (B b c - 2 \, A c^{2}\right )} d\right )} x}{{\left (b^{2} c^{2} d^{2} - b^{3} c d e\right )} x^{2} +{\left (b^{3} c d^{2} - b^{4} d e\right )} x} - \frac{{\left (A b e -{\left (B b - 2 \, A c\right )} d\right )} \log \left (x\right )}{b^{3} d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((c*x^2 + b*x)^2*(e*x + d)),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 35.1107, size = 608, normalized size = 4.14 \[ -\frac{A b^{2} c^{2} d^{3} - 2 \, A b^{3} c d^{2} e + A b^{4} d e^{2} +{\left (A b^{3} c d e^{2} -{\left (B b^{2} c^{2} - 2 \, A b c^{3}\right )} d^{3} +{\left (B b^{3} c - 3 \, A b^{2} c^{2}\right )} d^{2} e\right )} x +{\left ({\left ({\left (B b c^{3} - 2 \, A c^{4}\right )} d^{3} -{\left (2 \, B b^{2} c^{2} - 3 \, A b c^{3}\right )} d^{2} e\right )} x^{2} +{\left ({\left (B b^{2} c^{2} - 2 \, A b c^{3}\right )} d^{3} -{\left (2 \, B b^{3} c - 3 \, A b^{2} c^{2}\right )} d^{2} e\right )} x\right )} \log \left (c x + b\right ) +{\left ({\left (B b^{3} c d e^{2} - A b^{3} c e^{3}\right )} x^{2} +{\left (B b^{4} d e^{2} - A b^{4} e^{3}\right )} x\right )} \log \left (e x + d\right ) -{\left ({\left (B b^{3} c d e^{2} - A b^{3} c e^{3} +{\left (B b c^{3} - 2 \, A c^{4}\right )} d^{3} -{\left (2 \, B b^{2} c^{2} - 3 \, A b c^{3}\right )} d^{2} e\right )} x^{2} +{\left (B b^{4} d e^{2} - A b^{4} e^{3} +{\left (B b^{2} c^{2} - 2 \, A b c^{3}\right )} d^{3} -{\left (2 \, B b^{3} c - 3 \, A b^{2} c^{2}\right )} d^{2} e\right )} x\right )} \log \left (x\right )}{{\left (b^{3} c^{3} d^{4} - 2 \, b^{4} c^{2} d^{3} e + b^{5} c d^{2} e^{2}\right )} x^{2} +{\left (b^{4} c^{2} d^{4} - 2 \, b^{5} c d^{3} e + b^{6} d^{2} e^{2}\right )} x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((c*x^2 + b*x)^2*(e*x + d)),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x+A)/(e*x+d)/(c*x**2+b*x)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.279626, size = 362, normalized size = 2.46 \[ -\frac{{\left (B b c^{3} d - 2 \, A c^{4} d - 2 \, B b^{2} c^{2} e + 3 \, A b c^{3} e\right )}{\rm ln}\left ({\left | c x + b \right |}\right )}{b^{3} c^{3} d^{2} - 2 \, b^{4} c^{2} d e + b^{5} c e^{2}} - \frac{{\left (B d e^{3} - A e^{4}\right )}{\rm ln}\left ({\left | x e + d \right |}\right )}{c^{2} d^{4} e - 2 \, b c d^{3} e^{2} + b^{2} d^{2} e^{3}} + \frac{{\left (B b d - 2 \, A c d - A b e\right )}{\rm ln}\left ({\left | x \right |}\right )}{b^{3} d^{2}} - \frac{A b c^{2} d^{3} - 2 \, A b^{2} c d^{2} e + A b^{3} d e^{2} -{\left (B b c^{2} d^{3} - 2 \, A c^{3} d^{3} - B b^{2} c d^{2} e + 3 \, A b c^{2} d^{2} e - A b^{2} c d e^{2}\right )} x}{{\left (c d - b e\right )}^{2}{\left (c x + b\right )} b^{2} d^{2} x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((c*x^2 + b*x)^2*(e*x + d)),x, algorithm="giac")
[Out]